package com.it.exprezoorecords.adapter;

import com.it.exprezoorecords.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;


public class TrackViewCache {
	
	private View		baseView;
	private TextView	tvAuthor;
	private TextView	tvTitle;
	private ImageView	imageViewPhoto;

	public TrackViewCache ( View baseView ) {
		this.baseView = baseView;
		
	}


	public void setBaseView(View baseView) {
		this.baseView = baseView;
	}

	public TextView getTvAuthor() {
		
		if(tvAuthor == null) {
			tvAuthor = (TextView) baseView.findViewById(R.id.authorTrack);
		}
			
		return tvAuthor;
	}

	public TextView getTvTitle() {
		
		if(tvTitle == null){
			tvTitle = (TextView) baseView.findViewById(R.id.titleTrack);
		}
						
		return tvTitle;
	}


	public ImageView getImageViewPhoto() {
		return imageViewPhoto;
	}



}
